package com.wicket.okrbff.biz.service.dto.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffOrgPositionDto
 * @使用场景
 */
@Data
public class BffOrgPositionDto implements Serializable {

    /**
     * 职务ID:
     */
    @ApiModelProperty("职务ID")
    private String positionId;

    /**
     * 冗余职务名称:
     */
    @ApiModelProperty("冗余职务名称")
    private String positionIdName;

    /**
     * 职务性质:
     */
    @ApiModelProperty(" 职务性质")
    private String positionType;

    /**
     * 职务级别ID:
     */
    @ApiModelProperty("职务级别ID")
    private String positionGradeId;

    /**
     * 职务级别名称:
     */
    @ApiModelProperty("职务级别名称")
    private String positionGradeName;
    /**
     * 岗位类型ID:
     */
    @ApiModelProperty("岗位类型ID")
    private String stationTypeId;
    /**
     * 岗位类型名称:
     */
    @ApiModelProperty("岗位类型名称")
    private String stationTypeName;
    /**
     * 关联岗位ID:
     */
    @ApiModelProperty("关联岗位ID")
    private String stationId;
    /**
     * 岗位名称:
     */
    @ApiModelProperty("岗位名称")
    private String stationName;
    /**
     * 职位ID:
     */
    @ApiModelProperty("职位ID")
    private String postId;
    /**
     * 职位名称:
     */
    @ApiModelProperty("职位名称")
    private String postName;
    /**
     * 职务职责概述:
     */
    @ApiModelProperty("职务职责概述")
    private String positionDutyDesc;
    /**
     * 职务目标概述:
     */
    @ApiModelProperty("职务目标概述")
    private String positionTargetDesc;
    /**
     * 职务编号:
     */
    @ApiModelProperty("职务编号")
    private String positionNumber;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffOrgPositionDto that = (BffOrgPositionDto) o;
      return  positionId == that.positionId&&positionIdName == that.positionIdName&&positionType == that.positionType&&positionGradeId == that.positionGradeId&&positionGradeName == that.positionGradeName&&stationTypeId == that.stationTypeId&&stationTypeName == that.stationTypeName&&stationId == that.stationId&&stationName == that.stationName&&postId == that.postId&&postName == that.postName&&positionDutyDesc == that.positionDutyDesc&&positionTargetDesc == that.positionTargetDesc&&positionNumber == that.positionNumber&&subjectLifeCycle == that.subjectLifeCycle;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), positionId,positionIdName,positionType,positionGradeId,positionGradeName,stationTypeId,stationTypeName,stationId,stationName,postId,postName,positionDutyDesc,positionTargetDesc,positionNumber,subjectLifeCycle);
    }

}
